package com.qishenyuan.competition.service;

import com.qishenyuan.competition.dto.CompetitionBriefReq;
import com.qishenyuan.competition.model.Competition;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qishenyuan.competition.vo.CompetitionBriefResp;

import java.util.List;

/**
 * @author qishenyuan
 * @since 2025-03-02
 */
public interface CompetitionService extends IService<Competition> {

    /**
     * 获取比赛列表
     */
    List<Competition> getCompetitionList(CompetitionBriefReq competitionBriefReq);

    /**
     * 根据id获取比赛详情
     */
    Competition getDetailById(Integer id);

    /**
     * 查询比赛or活动
     */
    List<CompetitionBriefResp> searchCompetition(String key);


}
